package com.shanzhu.parking.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车辆违规记录表
 * </p>
 *
 * @author 只茂瑞
 * @since 2025-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("violation")
@ApiModel(value="Violation对象", description="车辆违规记录表")
public class Violation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "违规记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车牌号")
    private String plateNumber;

    @ApiModelProperty(value = "违规类型：1-超时停车，2-占用他人车位，3-未缴费，4-乱停乱放，5-损坏设施，6-其他违规")
    private String violationType;

    @ApiModelProperty(value = "违规时间")
    private LocalDateTime violationTime;

    @ApiModelProperty(value = "违规描述")
    private String description;

    @ApiModelProperty(value = "罚款金额")
    private BigDecimal fine;

    @ApiModelProperty(value = "状态：0-未处理，1-已处理，2-已申诉")
    private String status;

    @ApiModelProperty(value = "处理方式：1-罚款处理，2-警告处理，3-申诉通过")
    private Integer handleType;

    @ApiModelProperty(value = "处理时间")
    private LocalDateTime handleTime;

    @ApiModelProperty(value = "处理备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
